#！/bin/sh

#data_date=$1

add_sql="
alter table jtp_work_09.ods_user_behavior_logs add if not exists partition (dt = '${data_date}');
alter table jtp_work_09.ods_page_subtype add if not exists partition (dt = '${data_date}');
"



/opt/module/spark/bin/beeline -u jdbc:hive2://node101:10001 -n bwie -e "${add_sql}"